package com.yanqu.road.server.cmd.activity.jiuzhou;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.jiuzhou.JiuZhouProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.jiuzhou.JiuZhouModule;
import com.yanqu.road.server.protocol.GameProtocol;


@Cmd(code = GameProtocol.S_JIU_ZHOU_GET_USER_MONTH_RANK_GRADE,desc = "九州获取当前玩家实力评级")
public class JiuZhouGetUserMonthRankGradeCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        JiuZhouProto.JiuZhouGetUserMonthRankReqMsg jiuZhouGetUserMonthRankReqMsg = JiuZhouProto.JiuZhouGetUserMonthRankReqMsg.parseFrom(packet.getBytes());
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.getModule(JiuZhouModule.class).getUserMonthRankGrade();
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
